//
//  NoClippingView.swift
//  onemeetingmac
//
//  Created by 张衡 on 2020/3/11.
//  Copyright © 2020 onemeeting. All rights reserved.
//

import Foundation

class NoClippingLayer: CALayer {
    override var masksToBounds: Bool {
        set {

        }
        get {
            return false
        }
    }
}

class NoClippingView: NSView {
    
    override var wantsDefaultClipping: Bool {
        return false
    }
    
    override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)
        self.wantsLayer = true
        self.layer = NoClippingLayer()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    

    override func awakeFromNib() {
        super.awakeFromNib()
        self.wantsLayer = true
        self.layer = NoClippingLayer()
    }
}
